import React, {
    Component,
} from 'react';

import {
    StyleSheet,
    View,
    StatusBar,
    Platform,
} from 'react-native';

import DeviceInfo from 'react-native-device-info';

import Constant from '../utils/Constant'//全局变量

let deviceName=DeviceInfo.getModel();
let deviceId = DeviceInfo.getDeviceId();
const isIos = Platform.OS == 'ios';

export default class StatusBarSelf extends Component {
    render() {
        if (isIos) {
            return (
                <View style={{width: '100%', height:Constant.statusBarHeight,backgroundColor: this.props.color?(this.props.color.includes('#') ? this.props.color:'#'+'this.props.color'):'#ffffff'}}></View>
            );
            
        } else {
            return (<View style={{width: '100%', height:Constant.statusBarHeight,backgroundColor: this.props.color?(this.props.color.includes('#') ? this.props.color:'#'+this.props.color):'#ffffff'}}></View>);
        }
        

    }
    constructor(props) {
        super(props);
    };
}

const styles = StyleSheet.create({

});
